<?php require VIEW_PATH."/header.php";?>
<body>

    <div class="hd-menu-list">
        <ul>
            <li class="active"><a href="#">品牌管理</a></li>
            <li><a href="{{U('add')}}">添加品牌</a></li>
        </ul>
    </div>

    <table class="hd-table hd-table-list">
        <thead>
            <tr>
                <td class="hd-w50">id</td>
                <td>品牌名称</td>
                <td>品牌LOGO</td>
                <td class="hd-w100">操作</td>
            </tr>
        </thead>
        <tbody>
            {{foreach from="$data" value="$v"}}
            <tr>
                <td>{{$v['id']}}</td>
                <td>{{$v['name']}}</td>
                <td>
                    {{if value="$v['logo']"}}
                    <img src="{{$v['logo']}}" style="width:50px;">
                    {{endif}}
                </td>
                <td class="hd-w100">
                    <a href="{{U('edit',array('id'=>$v['id']))}}">修改</a> |
                    <a href="#">删除</a>
                </td>
            </tr>
            {{endforeach}}
        </tbody>
    </table>

</body>
</html>